Handle job names with spaces in them correctly