Moving the file attribute changes in the postinstall before the postinstall scripts.