Attempt to detect and build only if dependencies are not found.