adding basic sanity test
extra logic so that inlined packages are also recognized before attempting to require() them