Added some functions to get the filename from paths