Fixed bug when saving profiling reports of files in a sub-folder.