Document; expand environment variables check