Remove the requirement for the target directory to exist, add new parameters for configuration