Added optional filename argument to write_modprobe_config() function for