resolve promise when cache dir exists