add 7z extract to dir function so that a specific directory can be indicated, patch from keigoi