Add package validation function.
Fix local packages installation.