fixed a bug when cding to directories with spaces in them