add functions: file_basename and file_dirname