Bug fix with Impl directory detection in LibGenerateCode.py