Add path key if there is no such.