Detect absolute paths in a manner compatible with both Windows and Unix.