Wrote logic to locate correct core and user file