checkDependency('lcm') would fail if it was not called from the drake root directory.