Check also for shortcut URIs if path contains '.'.

The shortcut URIs where only checked if the given path variable contained no
dot. This made it impossible to easily search via shortcut URI for params like
'document.activeElement'. This patch lookup the shortcut URIs also if the
given path contains spaces, to avoid this misbehaviour.