You could run the program with strace and see which file it tries to write to, though I wonder why it would fail that way even if it can't.