Why couldn't you just tell them you were going to have to rewrite it if you couldnt get it embedded?
EDIT: In very corporate offices like that one, you don't get to use <language of choice> unless it's staying strictly internal (this one had the potential to be released to customers), you have low oversight and can get away with it (not my case), you have a history of choosing wisely (I had little history with them at that point). They prefer to minimize the risk on the maintenance end (NB: doesn't mean they do what's needed to make maintainable code, they do what's needed to make it easy to hire maintainers by sticking to popular languages and frameworks instead).
And completely miss the moment where the new maintainer comes in and says:
"!@#$ why didn't they just write this in prolog? freaking PHB's"