bug fix: use basename instead of dirname to get the project version