fix for spaces in dirname