Use a more robust method instead of overriding 'cd'