Cache paths are relative to resource path
Add resolved main path to package cache