Fix version retrieval, fix prompt fn