Get workspace names from file names

Refs #10409