make zip dir autodetectable