Takes a path as a string and returns the basename.
(string) Full path and filename.
(string) Basename (filename with file extension if present).
The function is not file system aware; it does not check to see if the path of file exists.
The function is OS aware; it assumes the directory separator is \ on Windows and / on other OS.
Like the UNIX basename command, it returns everything after the last path separator character in the string supplied, however this version does not support removing the suffix (extension) from the basename.