It's an interesting question. For all we know the return program had a specific set of parameters that overrided all other protocols and Data and Lore were similarly programed with a similar return program.
If it's just vague like... come home however possible, then their personalities(for lack of a better word) would play into that. Data vented the air on the bridge. Lore would've done so for the whole ship. Assuming he hadn't already killed the Pakleds.