When the path does not start with . or .. the function returns empty string. Tip: http://sourceoddity.com/fixinsight/ ;)