make sure the temporary files are created in the same directory as the
target files so they can be rename()d. This fixes a compilation issue on
machines with the build directory living on another partition than /tmp.
Signed-off-by: Stefan Reinauer <firstname.lastname@example.org>
Acked-by: Stefan Reinauer <email@example.com>