Specify name of the application in logs
Properly detect name of application