target file corrected to allow lib in the same dir as the target file