move ext from path to name