Resolve #47

Works only for linux ( sorry for the reindention )