Removing unnecessary steps in the remote script [ci skip]