bugfix: G:10 - Avoid warnings from realpath()

Avoid warnings from realpath() if SAFE MODE is enabled