Defined __filename and __dirname, Catch Circular Reference errors