make sure to make the directory before copying in cached build