fix: path resolving was wrong when built as a subproject

Signed-off-by: Filip Wasil <filip.wasil@gmail.com>
Merge pull request #187 from filipwasil/subproject_build_fix

fix: path resolving was wrong when built as a subproject