print error and exit if variable is already defined
move to $config_path/env.ini, and error handling

create the file if it doesn't exist, and don't choke when it's empty