Ignore EOL changes when checking whether script has changed

Currently we run into issues from time to time if Git hash changed EOLs between Windows \r\n and Unix \n when running scripts. This change adds checks whether hashes would match if only EOL conversion is made. If only EOL changes are present, the files are considered the same. 

Does not change way the hash is calculated to database, only extra checks if original check fails.