fix mangling of absolute paths in import resource rebasing