Use === and !== in files app

Mostly automated. Did some testing.

More testing would be nice.

Also see #2979 and #2980

cc @icewind1991 @LukasReschke @bartv2 @butonic