fix: path resolving was wrong when built as a subproject

Signed-off-by: Filip Wasil <filip.wasil@gmail.com>