loader: Use loc instead of location for getting the directory

Without this, the VK_ICD_FILENAMES parameter ends up getting ignored
1 file changed