Automatically add trailing/non-trailing paths to file mapping dictionary