Use XPath last()

Fix #15