Now also working with linux (tested with ubuntu 12.04)
Fixed little bug