Fix wrong options variable assignment

This caused the name options's function to ran only for the first file.
Merge pull request #3 from ingro/master

Fix wrong options variable assignment