fix bug where cd breaks on directories with spaces