tweaked resources File loading logic to be less sensitive to runtime
locations