Correctly detect AppleScript availability