Change directory before execute command