Revert "reverted head subdirectory modification"

This reverts commit b5b33d7eeb99c13469b7e23a25fbd45d35cb9e6e.