Join strings to form a valid file path.