added checks for a clean building environment in reference to: https://github.com/globaleaks/GlobaLeaks/issues/245
Merge pull request #253 from globaleaks/build_environment_fixes

added checks for a clean building environment