Added $file $path and $dir vars