Fixing distribution generation script
Removing remnant of Makefile script
Better CPACK ignore
Better git version checking