Implement extension removal option on path.basename
Implement optional extension removal in path.basename