Make sure only metadata/build directories in the workspace directory are excluded