Moving plugins search to top

relevant code for #2510