Added compatibility to redhat family OS