Made "valid files" test architecture independent