On publish environment ResourceType.makeAbsolute does not work properly because by default the anonymous resource resolver does not have access to /apps folder to do the script resolution of the component to get the absolute path.
either we go back to a (inproper) handbaken absoluting with appending /apps manually when required, or use ComponentManager instead, which has by design system-level access to /apps. it seems to work well, and can be adapted from a anonymous ResourceResolver.
fixed - using ComponentManager