(#15841) Add tar unpacking security checks

Add cheks to ensure no file from the module tarball is written
outside of the module directory.
advanced install
(#13542) Full featured support for installation from a local tarball

This patch adds support from installing or upgrading a mdoule from a local
tarball.
fix a typo
get option values before using them