Fix cdf for paths with spaces in them