Validate relative and absolute paths + null check.