fix cd funtion not jump home when issued outside