fix home path issue in cd command