Use environment variables for noshared
Make some attempt to use the right user instead of root