Fixed the Capfile creation