Added check in intelligent-split-window to be compatible with aquamacs