Don't remove logs directory.
Dir.mkdir works fine here.