fix rpmbuild build-in-place to work with target option

Fixes the case when --target= and --build-in-place are both given to
rpmbuild. The build-in-place macro was reset when looping all the
given targets and rpmbuild ended up requiring a tarball.

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>