Fix checking for pre/post files