If a file extension is specified in a  it is kept. Closes #1