Do not use the newer than check on windows since apparently minecraft will not force a timestamp update on the file when they are written until it's closed.