handle paths with whitespace