ubuild: pass file directory path to expanders, fix relative #includes

Relative #include did not work as intended because file paths were
not expanded using dirname() from the file containing the line.