Fixed realpath in  bash scripts. Added install-plugin script