Fallback to comparing layout names in awful.layout.inc

This helps in cases where you have accidentally cloned an entry from
`layouts`.

Previously, no current index would be found and the function would
silently fail.