Are you sure there is a cause & effect relationship here? It's unlikely executing an external command would trigger a redeploy.
The problem is the symlink itself. If I execute the command from the terminal the problem happens too, and the application returns to work only if I remove it.
I think it can be some permission issue. I changed the link to the home folder of my user instead of /tmp and it worked fine.