Turn a filepath into a flat string.
flatten_filepath(filepath)
filepath
string or list of strings
string, the flattened filepath