Added support for environment variables in pselect settings.