Use OS_USER instead of SUDO_USER environment variable

This fix should be much more flexible, instead of using `os.getenv("SUDO_USER")`