Fixed GetChangedFileText method to work more reliably.