fix search regexes in portable