ENH: add function ctk::composePath()

#2565