Change directory before running command