fixing detecting deps dir for cover.spec files