on w32, look for sharedir in /bin/../share instead of directly in bin/share.