Put stderr log in examineDir.
Fix syntax style.