Typo fix $file_parts['extensions']

$file_parts['extensions'] => $file_parts['extension']