Quick correction: If I do dub build and then manually run the binary it works fine too.

So, the issue is the dub run command.