Read and parse environment variables