build: fix ccache dir when only define USE_CCACHE

Change-Id: I8ec129510cf778df1483d7807ca9bc340bfd4e67