cd into proper directory when executing remote command