Changed handling so it uses the whole script also for the remote file