fix nameError issue on monitor write keyring

This fixes a problem where the remote function did not have enough information to be able to write the mon keyring file and therefore breaking all of the builds :/