up_folder function

Performs "up-level" on a folder string