Updated RequirePathScanner to pass tests