Replace tilde with caret in dependencies