Avoid BLI_path_slash_rfind for accessing file-names as NULL is returned when the path has no slashes, use BLI_path_basename instead. Also remove 2 cases where BLI_path_basename was inlined.
Avoid BLI_path_slash_rfind for accessing file-names as NULL is returned when the path has no slashes, use BLI_path_basename instead. Also remove 2 cases where BLI_path_basename was inlined.