Whitespace cleanup
Add PROJECT_*_DIR variables
Improve check for environment variables
Check for variable modifications via list() command