Make changlog perl script more universal