default to last commit on master branch if no tag nor branch is found for selector