code style changes, correct dir checking
support symlinks in "extract all" except on win