Added code from https://code.google.com/p/modswatcher/