M: Library: add 'getNewPath' method's family for generating output filename (with new base path and extension). +test