Make search() work with version and standalone prefix.