fix file path check for zipfile