Add OS check and documentation

The current script does not check whether or not it is running on an Ubuntu server, and has no error checking in place if the script is running on a different OS. This commit adds an operating system check.