Fix missing directory problem on travis ci.