Fix noRestartOn option.

Looks like there was a typo in the IF statement that prevented noRestartOn from being set regardless of the value.
Merge pull request #2 from akagomez/patch-1

Fix noRestartOn option.