fix permissions in INSTALL_FLAGS