Layout specification and discovery should follow the same behavior as partials

Fixes #1047
> if you actually want to special-case any relative path, change the method to check all characters for '/'

This would be introducing new behavior. This code was borrowed from Mvc 5 so I'd rather not change the semantics of it.