Several verifications when installing plugins from github

mkpkg.sh script and usr directory are compulsory. Var is optional.