If the management.port and server.port is not the same, the current logfile- endpoint detection fails. With this commit the presence of the endpoint is determined via a HEAD-request fixes #165