auto detect package manager