Small module for replacing a file extension in a path