corrected relative path generation.