Fix #181: path resolution handles negative indexes now