Fix missing mount for git reference and change a little how ccache is done.