Fix panic
for binaries built during tests.
#5513
+35
−41
Merged