avoid tar/head in calculating srcdir