Use absolute path to pkg in refresh