The script was reporting version as different because of windows line ending. These line endings are now being removed before the version comparison.