Get the cwd when called

If we get the cwd earlier, then changes to the directory before run is
called are ignored.
lib/mdl: Correct references to options
lib/mdl: Tidy up requires to make them easier to read
lib/mdl: Correct testing of mdl subversion
lib/project: Drop out project config cruft - not in use
lib/project: Improve version matching algorithms
tests: Add a load more tests
Version increment for recent changes