Fixed cout lines, and hopefully fixed build error
Missed one
Fixed registerfile errors
Restored default env variables

Restored default environment variables