Use require.resolve to find stex binary instead of an explicit path