extract package name using golang's build package instead of relying on the directory name