Fix calculation of version number in the library mapfiles