added some file management functions, changed how path concatenation handles '/'