fix aws command check from which to test command