Clean up readme, move env check above all uses of env.