fix cache dir determining on Windows (use algo from Composer)