Autodetects capfiles and formats them as ruby