refactor to deal with different linux apths