Fix error where include directory is not properly specified

Also fixes minor error where the $ctAlises array would be foreach'd
even if it was empty, triggering lots of nasty PHP warnings.