Bug fixes for catching GPIO exception if not running as root