Added check for '/' at start of path.