updated to prioritize path on RHEL