add version string to pkg-config file

Use version plus revision: "Version: 1.13.8 rev.1041"
If revision is 0 (= if the .git dir is missing) use only version: "Version: 1.13.8"