Make directory regex more liberal to allow for spaces and parenthesis in url.