Thanks for the reply
Yes, your workaround worked once (the first day that we noticed the issue), but when I pushed to the dev branch the changes in Plesk were reverted and it overwrote everything again.
So now we're locked without being able to use that dev branch.