Fixed the pathing problem when sharing a file.