Improve regression error testing

Check separately for globals file existence and permissions
Fix expect file test with NFS

NFS file system delays was causing the test for file existence
to periodically fail. Adding an "ls" call syncs the file system
and fixes the problem.