Introduce new way of dynamically specifying environment paths in the config.inc.php file.

All hard-coded paths shall be replaced using this infrastructure. Currently BRAINSFit and fyborg use it.