fix chmod and PACKAGES