Added prolog file detection