checkDependency at beginning to prevent silly crash
Merge pull request #198 from rdeits/rd-move-checkDep

checkDependency at beginning to prevent silly crash