Fix saving/comparing mtime of files from remote for https://, file://, ftp://

This fixes refetching every time for non-http://

This reverts 7b846827e.

Issue:	#977