Use the APP_NAME to set process title on unix systems

This makes easy to use pidof to find the process.
Additionally, it enables searching for all network connections
for any application using 'netstat -tanp |grep <appname>'.

Testing done: Verified that 'pidof <appname>'
and 'netstat -tanp | grep <appname>' works.