update for debug. support for Mac OS 10.6 or later.
fix NoneType-path
Merge branch 'dev'