use resolve to full path in command for register package