Fixed permissions in postinstall script