Adding check for ccache dir.