Smarter python and numpy build strings

Only add the build string if it is an exact major.minor or major.minor.patch
version. If it is an inequality, it is not added.

Fixes #112.
Perl build string: strip out equality and inequality signs