fix for directory adjust
Merge pull request #221 from marsqing/master

fix for directory adjust