make script loading handle paths when called from other paths better