The VCL already contains a function of extracting a file name from a full file path, so let's use it instead of a custom one