Fix bug in custom cd, triggered when spaces in dir