Fix for invalid 'sudo cd'.