In collectors, use new executeCommand function instead of subprocess calls

It's more readable and convenient, no? :)