`.scr` is also a valid exe.  Why didn't you use the functions from std.path to do this?