This seems to be another situation where the behavior is different between a windows git bash prompt and a dos prompt ... It can detect the the existing imagej from dos in debug mode. So maybe it depends how you start Fiji (ie from command line bash/command line dos/windows file explorer ??
From this Zulip thread, @bnorthan writes: