Improved module dependency loader