I'm using AWS to run gmx simulations. The compute node does not have access to the root. I am guessing gmx does not have access to openmpi as well, but I added a full path to the script to use the version installed on the shared folder, which is accessible with compute node.
Please note the openMPI versions are different on the root and shared folder.