fixing some broken tests
added inspectPrefix that allows an early exit without fs operations when the path does not match a certain prefix
added a replacePrefix to help with mounted directories