Use directory names instead of full file paths