it's not reliable to read the pkg name from filename, fixed
support zips