Break if library found
Fixed invalid output filenames