Fix installed version check

Current implementation does not correctly get a version of the installed Chef
on some platforms, such as CentOS 5.

Problem is that sudo result contains the blank line at the last,
and version is overwritten by the blank.
Merge pull request #53 from comutt/fix_installed_version_check

Fix installed version check