Fix support for running builds directly from a subproject's directory