rst: fix calling rst from directory inside a project's subdir

Change-Id: I75ad8913a5970537349d71785129caf7d60cb26c