Introduce path cleaning

A new function sp is introduced. It does the same as ss but also cleans
the path.