Fix prompt for directories with spaces