Updated conf dir and key dir path to use predefined constants

Signed-off-by: Kristián Feldsam <feldsam@gmail.com>
Fixed log method.

Signed-off-by: Kristián Feldsam <feldsam@gmail.com>