ruby-compilation: re-apply default-directory each time

Prior to this change, when working on two Rails projects a compilation
buffer would get tied to the working directory of the first project to
use it.