build: use CCACHE_DIR for ccache directory