Fixed bug which which didn't allow libraries with different names from module to load correctly in some situations