Better error handling in the project version command for centos 6