dodir: fix issue when building a file in same directory
dodir: $1 and $2 should be starting with ../