serverspec has a contract on running commands remote. this fixes the local

execution and adds a conditional context depending on the presence of the nx
flag