change_path_extension(ext)
Make a new PathInfo changing the path extension.
If missing value is passed as a parameter, the path extension of the receiver will be deleted.
script object : a new instance of PathInfo