fixed attribute error on os module.
Merge pull request #2 from jenix21/master

Fixed attribute error on dirname call on os module.