reduce repetitive code

-- add another path of loader for opensuse also