Screwed up director (loop in command definition), how to revert

Hello,
by chance, I defined a command that imports itself. I cannot remove that command because the director page gives an error when showing the command details.
The changes still are not deployed. However, I cannot remove that change from the deployment list because that list also gives an error.
Can you tell me where that pending changes are stored in the file system so I can remove it there? Or is there another way to solve this issue?
Thank you very much in advance!