scan: Avoid silly find problem with invalid current dir.