Fixed a buffer overflow (and inevidable crash) in SP caused by paths which are too long (such as the ones in Atlantica)