Improve pid directory handling

fix security issue with mode 777 for pid directory
take default user for pid directory from config file
make pid handling configurable via /etc/default/newrelic_plugin_agent