Simplify PUPPET_VERSION handling
Drop obsolete mocha dependency
Fix dbpath in tests

The path was changed in commit 8365c6e.
Exclude external modules from puppet-lint