Remove non-portable sort usage

Version sorting (-V) is not available with the default OSX sort.