Create log directory and lock version of foreman