[openSUSE/obs-build] ffa618: Open the output file before doing the chdir