Correctly build documentation.

- delete old links if present which prevent compiling userguide and
  reference
- correctly remove userguide files (directory can contains subdirectories)
- reference directory path changed with previous commit so update it
  on automatic test build. This fix uploading them on website.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>