Fixed core mod not working in a compiled environment