Make log directory for TravisCI
Python 2.6 doean't support chained with statement

Hope it has no problem with nested statements.