fixed cd when dirpath has spaces