sublime text2 support and fix filename input

On Sublime Text2, old code didn't work. So, support sublimeText2 style file.write() function to fix it.

Filename input panel's default value is now just "Default", and add  '.sublime-snippet'  after reading the input. With this change, it will be easier to edit the filename.