Add compatiblity for ubuntu in app server