Switch bash script remote execution from bash -ci to bash << EOF