Fixed bug where check for already existing local file would fail.