Makefile: use cut instead of sed for env var list