Handle requiring main as a directory