Works under Posix system now.

Test on Mac 10.8.3