Resolving path for libs in scenario, cleanup