Tar preserves permissions, and sometimes the elasticsearch tar sets the plugin directory to read-only. This will ensure that we have a valid plugin_dir.
ensure plugin_dir is defined.
Merge pull request #6 from SimpleFinance/manage_plugin_dir

Manage plugin dir