Added logic for 'pwd' and 'ver'