Using file basename istead of path to calc country