Handle cases of file paths containing spaces and/or carriage returns