use local function when args exists
support test file as target
support generators
Fix dir as a file
0.7.0 release