More bug fixes for catching GPIO exception if not running as root