Only open the pid file if we're going to use it
Merge pull request #10 from elliotkendall/pidfile

Only open the pid file if we're going to use it