fix GetNearbyFilename - fix memory leak due to variable 'base' - fix usage of uninitialized variable (path)