Checks if filename already exists. Closes #229