Fixed #3 -- Improved error checking for a common problem running under Ubuntu.