subprocess_helpers: Add run_sync_with_input_get_output.

This function runs a command synchronously and returns the output.
Merge branch 'master' of github.com:mauios/ostbuild