NXBT-738: fix base directory for relative buildFile; add IT tests raising the relative buildFile issue and covering attach/resolve feature