#2587: Add executable file types to helper function.