Man who targeted Lake District cash machine jailed for two years