Add more prefix support in <dir> element

Added two prefix modes:
  "relative" that makes the relative path be relative to current file
  "cwd" for relative to current working directory which implies current behavior.

Resolves: #15
2 jobs for master in 7 minutes and 11 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #26484
shared-build

00:07:11

passed #26485
static-build

00:05:39