Fix be_mode and be_executable matcher to be compatible with Mac OS X v10.4.11

Update check_mode and get_mode methods for Darwin because "stat -f %A" is not available on Mac OS X v10.4.11. This pull request works for me on Mac OS X v10.4.11.