Not sure where the previous comment went here.  We cannot base pathing—particularly output-related—against the repository path.  That could be in an entirely different location, one that the user has no writable access to.