command was executing in wrong dir