User environment variables are overwritten

Why all the `export`? It's like the script never learnt to share.