Interface SPM ApplyTransform generated an error if out_file was not provided

Generation of out_file name was broken and out_file remained empty if not provided, leading SPM to fail.