Use File.expand_path.