Fix dependency strings to work with rc's.