Added checkdir script.