Merge pull request #22 from dart-lang/directory_check

fix an issue with getSdkDir