Write config file automatically to RCUBE_CONFIG_DIR

This changes can save the config.inc.php in the RCUBE_CONFIG_DIR automatically. If permissions not granted => the old way.