Executing from terminal, dmengine and flags

So here is my little problem.
I develop server and client in parallell in Defold and frequently I want to startup the game in headless mode (server). So I created a small script that just starts the dmengine_headless in the build folder. Problem is that I don’t see any other way that the dmengine to be placed in that folder manually. Then as soon as I build anything new it is deleted and I have to move another dmengine_headless into the build folder again.
I only know about the config flag but wondering if there are any other way to do this. If I can have dmengine placed somewhere else and still run the content in another folder?
Or any other solution maybe?

You can put dmengine in the root of the project, parallel to game.project.