When generating intermediate or dialect specific temporary file names, only append a prefix derived from the source file name extension in the uncommon case where we are compiling a Prolog source file as Logtalk code