Parse environment variables