Fixed issue with subprocess not haivng environment variables