Add fix for trailing directory separator in multifile building