Fix file name flags

Closes #52.