fix tempfile-tests on OSX
remove octal literals from debug module (strict mode compatibility)