small tweak to account for spaces in directory names