[CI] extend float ref getter script + turn into bash script
Follow up from my email. The script now returns float-pc by default if the needed branch does not exist. Also turned into a shell script for possible outsourcing into external CI repository.