Fixed and refactored refqname assignment for build and run actions