Managing software inventory