Fix source integration specs
use empty instead of empty string comparison
Allow 0 or 1 exit status for patch