Updated to run on server and fix umask