Fix chown usage in pkg-install. Taken from MC