Your fifth paragraph illustrates exactly why this is an entirely pointless endeavor, especially because you mention that their IT department will be doing maintenance on the project. That means they need access to the source code, eliminating any code obfuscation solutions. Furthermore, assuming you would somehow gain time from this, that time would be spent before the worker left the company, rather than after. The process would be something like Find code > make it work elsewhere > leave company rather than find code > leave company > make it work elsewhere.
Any steps you take to make the application harder to use elsewhere will also make maintenance more difficult.
The problem your client is facing is handled through legally binding contracts that clearly prohibit employees from just up and leaving with company source code, not with some convoluted DRM solution that will just be cracked by anyone who actually wants to crack it.
Any solution that would, for example, look for a specific file before running code would be easily defeated by just removing that check from the code. If your security can be beaten by a line comment, it's not security.
Any system that would look up a value in a file, environment variable or database, can be defeated in the same way. Even if you manage to somehow hide away the code that actually does the check, it will be found by anyone who's determined enough to actually start their own business.