[FIX] remove '/' if it is at the and of a path (as an arg)