Use File.join and nil for empty paths.