Avoid duplicate extension in nbconvert

nbconvert --to notebook --output Output.ipynb

would write Output.ipynb.ipynb before this PR