Construct check_dir and dir_control methods