bitbake-layers: remove-layer: accept just layer directory
If the specified layer isn't a path, then just match on the directory.
Fixes [YOCTO #7839].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>