fix regexp and for BSD find system