Make ap commands sh compatible.