handle directories with spaces