Fixed the apigility bash script