Fix depth bug in build post cache to work on EC2