phase1: handle source directory with libc suffix