I'm 64, a Perl guy and in London. I still get a fair amount of contract work, some of which I turn down. Recently that's included a couple of start-ups. Are you London area? I suspect this may also be a geographical and networking problem. I'm ex-investment bank and people know me.
Meanwhile some of the other advice is great, learn Python [I did], learn Java [I do some, hate it, it reminds me of COBOL], improve Javascript, especially the 'new' frameworks. But, I like to program and I like freelance, if you're programming 'for cash', then the advice about graduating to management is good. At this age, I can look at things and go NOOOOO, often saving others a lot of time, money and heartache, but I don't like meetings/suits etc. etc.
So if you're old, I'm moribund [although 2 hour half marathon suggests otherwise, keep healthy too!], don't despair, very best of of luck from me.