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
fix regexp to match nx at the beginning and at the end of the flags
fix trailing space
Merge pull request #9 from ehaselwanter/master

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