slight fix for cscripts
support for pre_check, pre_dir_check and post_check scripts