basename and DIRECTORY_SEPARATOR in other languages

Build a receipt path without hard-coded separators