added logic to build log dir on TravisCI