Only try and remove the file to be generated if it exists, fixes bug with -f