fix test to allow rc and .dev releases for pip
os.path.realpath for build_prefix globally and in virtualenvs