Added code to look for cpp extension