Reverted definesite.py changes in hopes that it might fix settings env var problem