packager: fix parsing in comparing version and changelog tag, no diff removal if uncommited changes detected