remove whitespace after tests xml; use sh to execute command