Change file directory and set up for remote run