Fix for issue #3

Hi,
with [this commit](https://github.com/trix/nano/commit/621be27a9a3d0a7cac308769732a3ad7b95ab984) nano is not working in my environment (chromium 25.0 under Xubuntu 2012.10).  I made a little patch that fix the problem.

Regards,
Sebastian