handle error in cd and . filename