Allow ~ and $ENV_VARS to be used in config files

Then we can e.g. use ~/fsl_course_data/ and $FSLDIR/share/fsl/pyfeeds-tests in the config file.