Open the file after moving it.

This stops us from opening the file we're moving and opens a new file if
necessary.
Fix logic in empty USE flag linter.

The logic was checking the second element of contents rather than every
content's second component.