I needed to strip off the first ```/```, else the exclusion of ```/dir``` didn't work.