Correct workaround for issue #158 to allow custom portable versions.
Will need to implement it in cmake at a later time when an official portable build happens.