getting filename by 'path' module