Accommodate for spaces in paths and file names passed to curl command