Fixed tab text after SaveAs and loading files into the same tab.
Fixed case sensitivity in matching of file name in error messages (fixes #216).