renamed to lib::projectroot as suggested by Smylers http://prepan.org/module/nY4oajhgzJN
better regex for local-lib dirs
added tests