Added OS-specific path checking.