Use path.isAbsolute instead of checking first character.