FORGE-340: Introduced --keepSources flag and now temp resource is properly disposed