Added utility method for figuring package from path