fix: filetype, coloring for executables and folder
When the reuse filetype code was introduced, an if statements logic was
accidentally flipped, marking exectuables as folders, and folders as
executables.
This incorporates the proposed patch by jschpp in #1195.
Refs: #883
Closes: #1195 #1196
Co-authored-by: =?UTF-8?q?Johannes=20Sch=C3=B6pp?= <darkdiscover@gmail.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>