Added search wrap if wrapscan is enabled.
Added global override for wrapscan