compile: use shortest path from the compiledir to the outname