Support tildes and environment variables in config files