Fixes #945, relative requires within package's main file when the main is not at the root