Fix errors with start_directory containing spaces