ping() update for 172

checked existence of /logs/ for determining server version
added 172 to stock profiles
corrected issue with missing self.env['log']

Added self.env['log'] check (now contains path) in set_environment
Merge pull request #25 from hexparrot/172compat

172compat