Only successfully parse a 'programme' command if the programme exists.
Add mocha tests that I forgot to commit.