Fix lb-dev for the nightly builds use case
- fix typos in template
- fix handling of LCG_VERSION
- fix handling of non-standard project versions (like master or HEAD)
See https://mattermost.web.cern.ch/lhcb/pl/rnwz65nz17ytubgtor5zfsn1pa
Edited by Marco Clemencic