fixed bug when building without cache dir structure