upgraded to work with ubuntu 14 and made several bug fixes with paths