Fix for NoSuchFileException

Creates logs directory if it not exist.