handle paths with spaces