Fix overriding `require`
Ignore directories for now