Change home directory in cd function