Fixed bug when detecting existing screenshots.