Replaced version comparison function

Fix for OSX error message:

    expr: not a decimal number: '1'
Merge remote-tracking branch 'upstream/master'
Merge branch 'master' of git://github.com/goude/homeshick
Fixed code formatting and removed dead code.

Fixed code formatting on version_compare function to match rest of file.

Removed old version_compare_old function as it is no longer needed.