make sure that the target directory exists before unpacking