updating for ubuntu 13.10
fixing another bug when using ubuntu
Merge pull request #253 from JBKahn/master

updating for ubuntu 14.04