Fix #4, really.

- refine code style.
- use os.path.dirname(__file__) to fix it.