Scroll the compilation window properly

The call to `end-of-buffer-other-window` in the current code almost always scrolls the wrong window for me.