try to repair incoming path starting with ~/