Refactor isVersionNewer, use file separator, add more tests.