make dependency paths relative when there is a lib_Dir