Fixed error that prevented zip files which contains files with a dot in the end to properly unpack

Signed-off-by: Niklas Ekman <niklas.ekman@gmail.com>