fixed temporary directory issue on mac os x
added ubuntu 14.04 and fedora 20