Update XnatUtils.py

Adding .strip() to avoid trouble if space at the end of the path