Only change 'tags' if tags file exists

Closes #402.  References #426.