he Treasury be, and he is hereby, authorized and directed to refund, out of any money in the Treasury, not otherwise appropriated, upon proper application being made to the Commissioner of Internal Revenue, under such rules and regulations as may be prescribed, so much of said tax as may have been collected on contingent beneficial interests which shall not have become vested prior to July first,