fix getDir with version
Merge remote-tracking branch 'origin/master'