adjusted the code generation and deployment to safely handle config files inside symlinked directories.