extract last component from go path