Renamed erasaf_check4dup.rb to erasaf_check.rb. Added empty dir check. Added tests.