main loop now works on shadows too

main loop now works on shadow drive, or on original drive, depending on
whether shadow or not is used
$original_path variable changed to $source_file_path
$file_shadow variable changed to $source_file