rifle.py: expand environment variables in "has" function