reconfig resource loading to work with pyinstaller