Limit portlet blocking to directory, fixes #4