Merge pull request #1 from troyengel/master

adding config file safety check, move default PID, check log existence, change polling to once an hour, use command substitution instead of temp file