Fixed path matching bug
- Make sure paths have trailing slashing before comparing
- Added unit tests
- Modified makefile to run test on the new runtime instead of the old one.
  This makes it possible to do *any* testing.