replace suns detectwm.sh reliance w/ native approach