Move the `rt` build directory under $target

Closes #2302