Core: package manager changes. Chmod to 777 for core files during upgrade added.