Fix cpack versioning, ignore temp files on Mac.