check both absolute and relative path for icon file