fixes zip download for folders containing a dot .....

strrpos fails in cases the file in the path has no dot but the parent folder

fixes #1505